package learn.up.generic;

import java.io.Serializable;
import java.util.Map;

import com.google.gson.annotations.SerializedName;

public class People implements Serializable{

	
	private static final long serialVersionUID = 6896166915620432168L;
	
//	@SerializedName("username")
	private String name;
	@SerializedName("AGE")
	private Integer age;
	
	private String gender;
	private Map<String, String> params;
	public void init() {
		System.out.println("init");
	}
	public void destroy() {
		System.out.println("destroty");
	}
	
	public People(String name) {
		this.name = name;
	}
	
	public People() {
		
	}
	
	private static People p = new People();
	public static People getInstance() {
		return p;
	}
	transient private String id;
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "People " + name + ", " + age;
	}

	public People(String name, Integer age) {
		this.name = name;
		this.age =age;
	}

	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Map<String, String> getParams() {
		return params;
	}
	public void setParams(Map<String, String> params) {
		this.params = params;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
}
